package org.shunya.duplicatefileperquisitor.model;

public enum FileType {
    MP3, WMA, MP4, AVI, TXT, MOV, UNKNOWN;

    public static FileType getFileType(String fileType) {
        if (fileType == null || fileType.isEmpty()) {
            throw new RuntimeException();
        }
        try {
            return FileType.valueOf(fileType.toUpperCase());
        } catch (Throwable t) {
            return UNKNOWN;
        }
    }
}
